package com.example.lab.result;

import lombok.Data;

import java.util.List;

@Data
public class PageResult<T> {
    private List<T> items;
    private long total;
    private long currentPage;
    private long pageSize;

    public PageResult(List<T> items, long total, long currentPage, long pageSize) {
        this.items = items;
        this.total = total;
        this.currentPage = currentPage;
        this.pageSize = pageSize;
    }
}